﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VDataAdapter.WorkerManagement
{
    class VDataWorkerManager : WorkerManager
    {
        public VDataWorkerManager(IWorkerScheduler scheduler, WorkerExceptionHandler exceptionHandler) : base(scheduler, exceptionHandler)
        {
             

        }

        /// <summary>
        ///  if it is checking queue type return it
        ///  other wise return null
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="worker"></param>
        /// <returns></returns>
        private T IsCheckingQueueWorker<T>(Worker worker)
        {
            if (worker.GetType() == typeof(T))
            {
                Object obj = worker;
                return (T)obj;
            }

            return default(T);
        }
    }
}
